class UserSessionsController < ApplicationController
  def create
    @user_session = UserSession.new params[:user_session]
    if @user_session.save
      redirect_to "/"
    else
      redirect_to :action => "new"
    end
  end

  def destroy
    current_user_session.destroy
    redirect_to "/"
  end

  def new
    @user_session = UserSession.new
  end
end
